Optimal. Leaf size=92 \[ -\frac{1}{4} d \log \left (x^2-x+1\right )+\frac{1}{4} d \log \left (x^2+x+1\right )-\frac{d \tan ^{-1}\left (\frac{1-2 x}{\sqrt{3}}\right )}{2 \sqrt{3}}+\frac{d \tan ^{-1}\left (\frac{2 x+1}{\sqrt{3}}\right )}{2 \sqrt{3}}+\frac{e \tan ^{-1}\left (\frac{2 x^2+1}{\sqrt{3}}\right )}{\sqrt{3}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0768899, antiderivative size = 92, normalized size of antiderivative = 1., number of steps used = 15, number of rules used = 8, integrand size = 16, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.5, Rules used = {1673, 12, 1094, 634, 618, 204, 628, 1107} \[ -\frac{1}{4} d \log \left (x^2-x+1\right )+\frac{1}{4} d \log \left (x^2+x+1\right )-\frac{d \tan ^{-1}\left (\frac{1-2 x}{\sqrt{3}}\right )}{2 \sqrt{3}}+\frac{d \tan ^{-1}\left (\frac{2 x+1}{\sqrt{3}}\right )}{2 \sqrt{3}}+\frac{e \tan ^{-1}\left (\frac{2 x^2+1}{\sqrt{3}}\right )}{\sqrt{3}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1673
Rule 12
Rule 1094
Rule 634
Rule 618
Rule 204
Rule 628
Rule 1107
Rubi steps
\begin{align*} \int \frac{d+e x}{1+x^2+x^4} \, dx &=\int \frac{d}{1+x^2+x^4} \, dx+\int \frac{e x}{1+x^2+x^4} \, dx\\ &=d \int \frac{1}{1+x^2+x^4} \, dx+e \int \frac{x}{1+x^2+x^4} \, dx\\ &=\frac{1}{2} d \int \frac{1-x}{1-x+x^2} \, dx+\frac{1}{2} d \int \frac{1+x}{1+x+x^2} \, dx+\frac{1}{2} e \operatorname{Subst}\left (\int \frac{1}{1+x+x^2} \, dx,x,x^2\right )\\ &=\frac{1}{4} d \int \frac{1}{1-x+x^2} \, dx-\frac{1}{4} d \int \frac{-1+2 x}{1-x+x^2} \, dx+\frac{1}{4} d \int \frac{1}{1+x+x^2} \, dx+\frac{1}{4} d \int \frac{1+2 x}{1+x+x^2} \, dx-e \operatorname{Subst}\left (\int \frac{1}{-3-x^2} \, dx,x,1+2 x^2\right )\\ &=\frac{e \tan ^{-1}\left (\frac{1+2 x^2}{\sqrt{3}}\right )}{\sqrt{3}}-\frac{1}{4} d \log \left (1-x+x^2\right )+\frac{1}{4} d \log \left (1+x+x^2\right )-\frac{1}{2} d \operatorname{Subst}\left (\int \frac{1}{-3-x^2} \, dx,x,-1+2 x\right )-\frac{1}{2} d \operatorname{Subst}\left (\int \frac{1}{-3-x^2} \, dx,x,1+2 x\right )\\ &=-\frac{d \tan ^{-1}\left (\frac{1-2 x}{\sqrt{3}}\right )}{2 \sqrt{3}}+\frac{d \tan ^{-1}\left (\frac{1+2 x}{\sqrt{3}}\right )}{2 \sqrt{3}}+\frac{e \tan ^{-1}\left (\frac{1+2 x^2}{\sqrt{3}}\right )}{\sqrt{3}}-\frac{1}{4} d \log \left (1-x+x^2\right )+\frac{1}{4} d \log \left (1+x+x^2\right )\\ \end{align*}
Mathematica [C] time = 0.178098, size = 98, normalized size = 1.07 \[ \frac{1}{6} i \left (\sqrt{6-6 i \sqrt{3}} d \tan ^{-1}\left (\frac{1}{2} \left (\sqrt{3}-i\right ) x\right )-\sqrt{6+6 i \sqrt{3}} d \tan ^{-1}\left (\frac{1}{2} \left (\sqrt{3}+i\right ) x\right )+2 i \sqrt{3} e \tan ^{-1}\left (\frac{\sqrt{3}}{2 x^2+1}\right )\right ) \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.011, size = 92, normalized size = 1. \begin{align*}{\frac{d\ln \left ({x}^{2}+x+1 \right ) }{4}}+{\frac{d\sqrt{3}}{6}\arctan \left ({\frac{ \left ( 1+2\,x \right ) \sqrt{3}}{3}} \right ) }-{\frac{\sqrt{3}e}{3}\arctan \left ({\frac{ \left ( 1+2\,x \right ) \sqrt{3}}{3}} \right ) }-{\frac{d\ln \left ({x}^{2}-x+1 \right ) }{4}}+{\frac{d\sqrt{3}}{6}\arctan \left ({\frac{ \left ( 2\,x-1 \right ) \sqrt{3}}{3}} \right ) }+{\frac{\sqrt{3}e}{3}\arctan \left ({\frac{ \left ( 2\,x-1 \right ) \sqrt{3}}{3}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.43112, size = 88, normalized size = 0.96 \begin{align*} \frac{1}{6} \, \sqrt{3}{\left (d - 2 \, e\right )} \arctan \left (\frac{1}{3} \, \sqrt{3}{\left (2 \, x + 1\right )}\right ) + \frac{1}{6} \, \sqrt{3}{\left (d + 2 \, e\right )} \arctan \left (\frac{1}{3} \, \sqrt{3}{\left (2 \, x - 1\right )}\right ) + \frac{1}{4} \, d \log \left (x^{2} + x + 1\right ) - \frac{1}{4} \, d \log \left (x^{2} - x + 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.51995, size = 212, normalized size = 2.3 \begin{align*} \frac{1}{6} \, \sqrt{3}{\left (d - 2 \, e\right )} \arctan \left (\frac{1}{3} \, \sqrt{3}{\left (2 \, x + 1\right )}\right ) + \frac{1}{6} \, \sqrt{3}{\left (d + 2 \, e\right )} \arctan \left (\frac{1}{3} \, \sqrt{3}{\left (2 \, x - 1\right )}\right ) + \frac{1}{4} \, d \log \left (x^{2} + x + 1\right ) - \frac{1}{4} \, d \log \left (x^{2} - x + 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [C] time = 1.918, size = 923, normalized size = 10.03 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.09963, size = 90, normalized size = 0.98 \begin{align*} \frac{1}{6} \, \sqrt{3}{\left (d - 2 \, e\right )} \arctan \left (\frac{1}{3} \, \sqrt{3}{\left (2 \, x + 1\right )}\right ) + \frac{1}{6} \, \sqrt{3}{\left (d + 2 \, e\right )} \arctan \left (\frac{1}{3} \, \sqrt{3}{\left (2 \, x - 1\right )}\right ) + \frac{1}{4} \, d \log \left (x^{2} + x + 1\right ) - \frac{1}{4} \, d \log \left (x^{2} - x + 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]